package com.estate.utils;

public class ThingsTodoUtil {

	public static int getThingsInt(String thingsString){
		int things = 0;
		
		if("待办".equals(thingsString)){
			things = 1;
		}else if("缓办".equals(thingsString)){
			things = 2;
		}else if("正在进行".equals(thingsString)){
			things = 3;
		}else if("已完成".equals(thingsString)){
			things = 4;
		}
		
		return things;
	}
	
	public static String getThingsString(int thingsInt){
		String things = "";
		
		if(thingsInt == 1){
			things = "待办";
		}else if(thingsInt == 2){
			things = "缓办";
		}else if(thingsInt == 3){
			things = "正在进行";
		}else if(thingsInt == 4){
			things = "已完成";
		}
		
		return things;
	}
}
